home *** CD-ROM | disk | FTP | other *** search
/ PCMania 75 / PCMania CD75_1.iso / hotme5 / data1.cab / Assets_-_hmfxrules_-_core / Assets / Hmfx / Rules / rules0001 / fxitems.xml < prev   
Extensible Markup Language  |  1998-11-03  |  5KB  |  143 lines

  1. <?xml version="1.0" standalone="yes"?>
  2.  
  3. <Items>
  4. <Template>
  5.     <Item Type="File" CLASS="Horizontal Rule" ID="%Filename%">
  6.       <Icon SRC="%Filename%"/>
  7.       <Description>%ASK:Description:%--------------------</Description>
  8.       <Filename SRC="%Filename%"/>
  9.       <SCRIPT LANGUAGE="JScript"><![CDATA[
  10.     var src, dest, attr;
  11.     src = "%Pathname%" + "%thisItem.SQ_getChildAttribute(Filename, 0, SRC)%";
  12.  
  13.     function buildpath()
  14.         {
  15.         if (ActiveDocument.InCurrentProject)
  16.             {
  17.             dst = Application.ProjectDirectory + "\\images\\rules\\%Filename%";
  18.             attr = Application.PathToURL(dst, ActiveDocument.Path + "/%Filename%");
  19.             }
  20.         else
  21.             {
  22.             dst = ActiveDocument.Path + "\\images\\rules\\%Filename%";
  23.             attr = "images/rules/%Filename%";
  24.             }
  25.         }
  26.  
  27.     function dropfxnow()
  28.         {
  29.         Application.FX.CopyFile(src, dst);
  30.         Application.FX.HTML('<P ALIGN=\"CENTER\"><IMG SRC=\"' + attr + '\" ALT=\"' + '%thisItem.SQ_getChildInnerHtml(Description, 0)%' + '" BORDER="0"><\/P>');
  31.         }
  32.  
  33.     // First, check if the file is saved
  34.     if (ActiveDocument.Path != "")
  35.         {
  36.         buildpath();
  37.         dropfxnow();
  38.         }
  39.     else
  40.         {
  41.         ans = Application.NoticeBox("Document must first be saved.", "Save now", null,"Cancel");
  42.  
  43.         if (ans == 1)
  44.             {
  45.             ActiveDocument.SaveAs();
  46.             }
  47.         if (ActiveDocument.Path != "") //check again if they did indeed save and name file
  48.             {
  49.             buildpath();
  50.             dropfxnow();
  51.             }
  52.         }
  53.     
  54.         ]]>
  55.       </SCRIPT>
  56.     </Item>
  57. </Template>
  58. <Item Type="File" CLASS="Horizontal Rule" ID="d13c03.gif">
  59.       <Icon SRC="d13c03.gif"/>
  60.       <Description>-------------------</Description>
  61.       <Filename SRC="d13c03.gif"/>
  62.       </Item>
  63. <Item Type="File" CLASS="Horizontal Rule" ID="d13c02.gif">
  64.       <Icon SRC="d13c02.gif"/>
  65.       <Description>-------------------</Description>
  66.       <Filename SRC="d13c02.gif"/>
  67.       </Item>
  68. <Item Type="File" CLASS="Horizontal Rule" ID="d13c01.gif">
  69.       <Icon SRC="d13c01.gif"/>
  70.       <Description>-------------------</Description>
  71.       <Filename SRC="d13c01.gif"/>
  72.       </Item>
  73. <Item Type="File" CLASS="Horizontal Rule" ID="d13c04.gif">
  74.       <Icon SRC="d13c04.gif"/>
  75.       <Description>-------------------</Description>
  76.       <Filename SRC="d13c04.gif"/>
  77.       </Item>
  78. <Item Type="File" CLASS="Horizontal Rule" ID="d13c05.gif">
  79.       <Icon SRC="d13c05.gif"/>
  80.       <Description>-------------------</Description>
  81.       <Filename SRC="d13c05.gif"/>
  82.       </Item>
  83. <Item Type="File" CLASS="Horizontal Rule" ID="d13c06.gif">
  84.       <Icon SRC="d13c06.gif"/>
  85.       <Description>-------------------</Description>
  86.       <Filename SRC="d13c06.gif"/>
  87.       </Item>
  88. <Item Type="File" CLASS="Horizontal Rule" ID="d13c07.gif">
  89.       <Icon SRC="d13c07.gif"/>
  90.       <Description>--------------------</Description>
  91.       <Filename SRC="d13c07.gif"/>
  92.       </Item>
  93. <Item Type="File" CLASS="Horizontal Rule" ID="d13c08.gif">
  94.       <Icon SRC="d13c08.gif"/>
  95.       <Description>--------------------</Description>
  96.       <Filename SRC="d13c08.gif"/>
  97.       </Item>
  98. <Item Type="File" CLASS="Horizontal Rule" ID="d13c09.gif">
  99.       <Icon SRC="d13c09.gif"/>
  100.       <Description>--------------------</Description>
  101.       <Filename SRC="d13c09.gif"/>
  102.       </Item>
  103. <Item Type="File" CLASS="Horizontal Rule" ID="d13c10.gif">
  104.       <Icon SRC="d13c10.gif"/>
  105.       <Description>-------------------</Description>
  106.       <Filename SRC="d13c10.gif"/>
  107.       </Item>
  108. <Item Type="File" CLASS="Horizontal Rule" ID="d13c11.gif">
  109.       <Icon SRC="d13c11.gif"/>
  110.       <Description>--------------------</Description>
  111.       <Filename SRC="d13c11.gif"/>
  112.       </Item>
  113. <Item Type="File" CLASS="Horizontal Rule" ID="d13c12.gif">
  114.       <Icon SRC="d13c12.gif"/>
  115.       <Description>-------------------</Description>
  116.       <Filename SRC="d13c12.gif"/>
  117.       </Item>
  118. <Item Type="File" CLASS="Horizontal Rule" ID="d13c13.gif">
  119.       <Icon SRC="d13c13.gif"/>
  120.       <Description>--------------------</Description>
  121.       <Filename SRC="d13c13.gif"/>
  122.       </Item>
  123. <Item Type="File" CLASS="Horizontal Rule" ID="d13c14.gif">
  124.       <Icon SRC="d13c14.gif"/>
  125.       <Description>--------------------</Description>
  126.       <Filename SRC="d13c14.gif"/>
  127.       </Item>
  128. <Item Type="File" CLASS="Horizontal Rule" ID="d13c15.gif">
  129.       <Icon SRC="d13c15.gif"/>
  130.       <Description>--------------------</Description>
  131.       <Filename SRC="d13c15.gif"/>
  132.       </Item>
  133. <Item Type="File" CLASS="Horizontal Rule" ID="d13c16.gif">
  134.       <Icon SRC="d13c16.gif"/>
  135.       <Description>-------------------</Description>
  136.       <Filename SRC="d13c16.gif"/>
  137.       </Item>
  138. <Item Type="File" CLASS="Horizontal Rule" ID="d13c17.gif">
  139.       <Icon SRC="d13c17.gif"/>
  140.       <Description>--------------------</Description>
  141.       <Filename SRC="d13c17.gif"/>
  142.       </Item>
  143. </Items>